package IMIC.NGUYENVANTINH.ARRAYLIST.EXCERCISE.EX02;

import java.util.List;

public class Models {
	/**
	 * Tinh tong mang dong hai chieu.
	 */
	public double Total(List<List<Double>> listarr) {
		double total = 0;
		for (int i = 0; i < listarr.size(); i++) {
			for (int j = 0; j < listarr.get(i).size(); j++) {
				total += listarr.get(i).get(j);
			}
		}
		return total;

	}
}
